﻿<%@ Page Title="Home Page" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"  CodeBehind="Default.aspx.cs" Inherits="AjaxDialogTemplate.TestWeb._Default" %>
<%@ Register assembly="AjaxDialogTemplate" namespace="AjaxDialogTemplate" tagprefix="cc1" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="act" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <h2>
        Welcome to ASP.NET!
    </h2>

    <p>
        Click the button to launch the dialog.
    </p>
    
    <label for="MyTextbox">MyText:</label> <asp:TextBox ID="MyTextbox" runat="server"/> 
    <asp:Button ID="launchDialogButton" runat="server" Text="..." />

    <act:ToolkitScriptManager ID="scriptManager" runat="server" />

    <cc1:MyDialog1 ID="Dialog1" runat="server"        
        CssClass="dialog"
        Title="MyDialog1"
        BackgroundCssClass="modalBackground"              
        TargetControlId="launchDialogButton"              
        ShowTitlebarCloseButton="true"
        ShowCloseButton="true" 
        ShowOkButton="true" 
        ReturnElementId="MyTextbox" />

</asp:Content>
